<?php

class base_module {
	function base_module() {
		die("base_module is an abstract class");
	}
	
	function begin() {
		die("modules must override begin()");
	}
	
	function needsAuthentication() {
		return false; //By default, modules are publicly visible!
	}
	
	function getTitle() {
		die("modules must override getTitle()");
	}
	
	function getContent() {
		die("modules must override getContent()");
	}
	
	function end() {
		die("modules must override end()");
	}
	
	private $tool;
	function setToolKit($toolkit) {
		$this->tool = $toolkit;
	} 
	protected function tools() {
		return $this->tool; 
	}
	
	private $sec;
	function setSec($secPlug) {
		$this->sec = $secPlug;
	}
	protected function sec() {
		return $this->sec;
	}
}

?>